package com.mxm.mirai.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mxm.mirai.dao.Mail;
import com.mxm.mirai.mapper.MailMapper;
import com.mxm.mirai.service.MailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 漫小猫
 * @since 2020-02-03
 */
@Service
public class MailServiceImpl extends ServiceImpl<MailMapper, Mail> implements MailService {

    @Autowired(required = false)
    MailMapper mailMapper;

    @Override
    public Mail SelectMail() {
        return mailMapper.selectById(1);
    }

    @Override
    public Integer UpdateMail(Mail mail) {
        mail.setId(1);
        return mailMapper.updateById(mail);
    }
}
